package org.jeecg.wechat.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @Description: 按照助记码分类的客户集合实体类
 * @Author: cheng
 * @Date:   2023-07-23
 * @Version: V1.0
 */
@Data
@ApiModel(value="EquipAndType对象", description="配件和分类实体类")
@Accessors(chain = true)
public class CustomByCodeVo implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "助记码")
    private String code;
    @ApiModelProperty(value = "客户集合")
    private List<Custom> customList;
    @Data
    @Accessors(chain = true)
    public static class Custom
    {
        /**主键*/
        @TableId(type = IdType.ASSIGN_ID)
        @ApiModelProperty(value = "主键")
        private String id;
        /**创建人*/
        @ApiModelProperty(value = "创建人")
        private String createBy;
        /**创建日期*/
        @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
        @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
        @ApiModelProperty(value = "创建日期")
        private Date createTime;
        /**更新人*/
        @ApiModelProperty(value = "更新人")
        private String updateBy;
        /**更新日期*/
        @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
        @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
        @ApiModelProperty(value = "更新日期")
        private Date updateTime;
        /**所属部门*/
        @ApiModelProperty(value = "所属部门")
        private String sysOrgCode;
        /**客户类型*/
        @Dict(dicCode = "custorm_type")
        @ApiModelProperty(value = "客户类型")
        private String custormType;
        /**编号*/
        @ApiModelProperty(value = "编号")
        private String custormNo;
        /**客户助记码*/
        @ApiModelProperty(value = "客户助记码")
        private String mnemonicCode;
        /**客户名称*/
        @ApiModelProperty(value = "客户名称")
        private String custormName;
        /**联系人*/
        @ApiModelProperty(value = "联系人")
        private String linkMan;
        /**联系电话*/
        @ApiModelProperty(value = "联系电话")
        private String linkPhone;
        /**所属区域*/
        @ApiModelProperty(value = "所属区域")
        private String area;
        /**地址*/
        @ApiModelProperty(value = "地址")
        private String address;
        /**坐标*/
        @ApiModelProperty(value = "坐标")
        private String crood;
        /**负责服务商*/
        @Dict(dictTable = "mt_service_providers", dicText = "pro_name", dicCode = "id")
        @ApiModelProperty(value = "负责服务商")
        private String providerId;
        /**负责服务站*/
        @Dict(dictTable = "mt_service_station", dicText = "station_name", dicCode = "id")
        @ApiModelProperty(value = "负责服务站")
        private String stationId;
    }

}
